﻿<?php
include $_SERVER['DOCUMENT_ROOT']."/libs/function.php";
$dsinfo = $database->select("goodjob", "*");

?>
<!DOCTYPE html>
<html lang="zh_CN">
	<head>
		<title>打赏 | eedo</title>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="">
		<meta name="keywords" content="">
		<meta name="author" content="eedo.net">
		<link rel="stylesheet" href="assets/css/bootstrap.min.css">
		<link rel="stylesheet" href="assets/css/style.css">
		<link rel="stylesheet" href="assets/css/utilities.css">
		<link rel="stylesheet" href="assets/css/jquery.mCustomScrollbar.min.css" type="text/css">
		
	</head>
	<body>
		<div class="site-container">
			<!-- Home block -->
			<div id="home-block">
				<section id="home" class="d-md-flex fullscreen-md">			
							<img src="wx.png" alt="background" class="col-xs-12 col-md-6" style="height: 100%; position: absolute;top:0;">				
				</section>
			</div>
			<!-- Side block -->
			<div id="side-block">
				<section id="typography">
					<div class="container">
						<h4 class="h2">赞赏</h4>
						<div class="divider divider-alt bg-primary my-5"></div>					
						<h6 class="mt-5">给程序猿加个鸡腿吧</h6>
						<hr/>
						<p class="lead">您的关注和支持是程序猿的不竭动力</p>
					</div>
				</section>
				<section id="tables" class="border-top">
					<div class="container">
						<h4 class="h2">赞赏列表</h4>
						<div class="divider divider-alt bg-primary my-5"></div>
						<h6 class="mt-5">按打赏时间排列</h6>
						<hr/>
						<div class="row">
							<div class="col-12">
								<table class="table table-bordered table-sm">
									<thead>
										<tr>
											<th scope="col">序号</th>
											<th scope="col">名称</th>
											<th scope="col">金额</th>
											<th scope="col">时间</th>
										</tr>
									</thead>
									<tbody>
										<?php
										for($j=0;$j<count($dsinfo);$j++){ 
											extract($dsinfo[$j]); 
											$date=date('Y年m月d日 H:m:s',$date);
											echo '<tr><th scope="row">'.$id.'</th>';
											echo '<td>'.$name.'</td>';
											echo '<td>￥'.$je.'</td>';
											echo '<td>'.$date.'</td>';
										}
										?>										
									</tbody>
								</table>
							</div>
						</div>

					</div>
				</section>
			</div>
		</div>
		<script src="assets/js/jquery.min.js"></script>
		<script src="assets/js/jquery.mCustomScrollbar.concat.min.js"></script>
		<script src="assets/js/main.js"></script>
		<script>
		var _hmt = _hmt || [];
		(function() {
		  var hm = document.createElement("script");
		  hm.src = "https://hm.baidu.com/hm.js?448f02fca78a892e6d9c5f1c599ff906";
		  var s = document.getElementsByTagName("script")[0]; 
		  s.parentNode.insertBefore(hm, s);
		})();
		</script>

	</body>
</html>